package com.jixi.pojo.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.Date;

@Data
@Schema(description = "餐饮公司表，记录餐饮公司信息")
@TableName("company")
public class Company {
	
	@Schema(description = "公司序号")
	@TableId(value = "company_id")
	private Long companyId;
	
	@Schema(description = "公司名称")
	private String companyName;
	
	@Schema(description = "公司账号")
	private String companyUsername;
	
	@Schema(description = "公司账号密码")
	@JsonIgnore  //让springmvc将对象转换为JSON时忽略password
	private String companyPassword;
	
	@Schema(description = "负责人姓名")
	private String principalName;
	
	@Schema(description = "负责人电话")
	private String principalPhone;
	
	@Schema(description = "公司地址")
	private String companyAddress;
	
	@Schema(description = "公司状态（1启用 0停用）")
	private Integer status;
	
	@Schema(description = "公司邮箱")
	private String companyMail;
	
	@Schema(description = "公司收款账户号")
	private Long accountId;
	
	@Schema(description = "是否已删除(0未删，1已删)")
	private Integer isDeleted;
	
	@Schema(description = "创建时间")
	private Date createTime;
	
	@Schema(description = "更新时间")
	private Date updateTime;
	
	
}
